home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / hold me in your arms / PGP 2.6 / Languages / pgp_russian.patch < prev    next >
Text File  |  1994-06-01  |  4KB  |  110 lines

  1.  
  2. *** charset.c.orig      Sat May  7 23:14:54 1994
  3. --- charset.c   Mon May 16 03:25:47 1994
  4. ***************
  5. *** 70,86 ****
  6.  
  7.   /* Russian language specific conversation section */
  8.   /* Two point-to-point charset decode tables */
  9.  
  10. ! /* Decode single char from KOI8 to ALT-CODES, if present */
  11.   static unsigned char intern2alt[] = {
  12. !       0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
  13. !       0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
  14. !       0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
  15. !       0xc8, 0xc9, 0xca, 0xff, 0xcc, 0xcd, 0xce, 0xcf,
  16. !       0xd0, 0xd1, 0xd2, 0xf1, 0xd4, 0xd5, 0xd6, 0xd7,
  17. !       0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
  18. !       0xd3, 0xf3, 0xf2, 0xf0, 0xf4, 0xf5, 0xf6, 0xf7,
  19. !       0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xcb,
  20.     0xee, 0xa0, 0xa1, 0xe6, 0xa4, 0xa5, 0xe4, 0xa3,
  21.     0xe5, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae,
  22.     0xaf, 0xef, 0xe0, 0xe1, 0xe2, 0xe3, 0xa6, 0xa2,
  23. --- 70,87 ----
  24.  
  25.   /* Russian language specific conversation section      */
  26.   /* Two point-to-point charset decode tables            */
  27. + /* produced by Andrew A. Chernov <ache@astral.msk.su>  */
  28.  
  29. ! /* Decode single char from KOI8-R to ALT-CODES, if present */
  30.   static unsigned char intern2alt[] = {
  31. !       0xc4, 0xb3, 0xda, 0xbf, 0xc0, 0xd9, 0xc3, 0xb4,
  32. !       0xc2, 0xc1, 0xc5, 0xdf, 0xdc, 0xdb, 0xdd, 0xde,
  33. !       0xb0, 0xb1, 0xb2, 0xf4, 0xfe, 0xf9, 0xfb, 0xf7,
  34. !       0xf3, 0xf2, 0xff, 0xf5, 0xf8, 0xfd, 0xfa, 0xf6,
  35. !       0xcd, 0xba, 0xd5, 0xf1, 0xd6, 0xc9, 0xb8, 0xb7,
  36. !       0xbb, 0xd4, 0xd3, 0xc8, 0xbe, 0xbd, 0xbc, 0xc6,
  37. !       0xc7, 0xcc, 0xb5, 0xf0, 0xb6, 0xb9, 0xd1, 0xd2,
  38. !       0xcb, 0xcf, 0xd0, 0xca, 0xd8, 0xd7, 0xce, 0xfc,
  39.     0xee, 0xa0, 0xa1, 0xe6, 0xa4, 0xa5, 0xe4, 0xa3,
  40.     0xe5, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae,
  41.     0xaf, 0xef, 0xe0, 0xe1, 0xe2, 0xe3, 0xa6, 0xa2,
  42. ***************
  43. *** 91,97 ****
  44.     0x9c, 0x9b, 0x87, 0x98, 0x9d, 0x99, 0x97, 0x9a
  45.   };
  46.  
  47. ! /* Decode single char from ALT-CODES, if present, to KOI8 */
  48.   static unsigned char alt2intern[] = {
  49.     0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa,
  50.     0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0,
  51. --- 92,98 ----
  52.     0x9c, 0x9b, 0x87, 0x98, 0x9d, 0x99, 0x97, 0x9a
  53.   };
  54.  
  55. ! /* Decode single char from ALT-CODES, if present, to KOI8-R */
  56.   static unsigned char alt2intern[] = {
  57.     0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa,
  58.     0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0,
  59. ***************
  60. *** 99,118 ****
  61.     0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1,
  62.     0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda,
  63.     0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0,
  64. !       0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
  65. !       0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
  66. !       0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
  67. !       0x98, 0x99, 0x9a, 0xbf, 0x9c, 0x9d, 0x9e, 0x9f,
  68. !       0xa0, 0xa1, 0xa2, 0xb0, 0xa4, 0xa5, 0xa6, 0xa7,
  69. !       0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
  70.     0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde,
  71.     0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1,
  72. !       0xb3, 0xa3, 0xb2, 0xb1, 0xb4, 0xb5, 0xb6, 0xb7,
  73. !       0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0x9b
  74.   };
  75.  
  76. - /* End of Russian section */
  77. -
  78.   /*
  79.    * Most Unixes has KOI8, and DOS has ALT_CODE
  80.    * If your Unix is non-standard, set CHARSET to "alt_codes"
  81. --- 100,117 ----
  82.     0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1,
  83.     0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda,
  84.     0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0,
  85. !       0x90, 0x91, 0x92, 0x81, 0x87, 0xb2, 0xb4, 0xa7,
  86. !       0xa6, 0xb5, 0xa1, 0xa8, 0xae, 0xad, 0xac, 0x83,
  87. !       0x84, 0x89, 0x88, 0x86, 0x80, 0x8a, 0xaf, 0xb0,
  88. !       0xab, 0xa5, 0xbb, 0xb8, 0xb1, 0xa0, 0xbe, 0xb9,
  89. !       0xba, 0xb6, 0xb7, 0xaa, 0xa9, 0xa2, 0xa4, 0xbd,
  90. !       0xbc, 0x85, 0x82, 0x8d, 0x8c, 0x8e, 0x8f, 0x8b,
  91.     0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde,
  92.     0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1,
  93. !       0xb3, 0xa3, 0x99, 0x98, 0x93, 0x9b, 0x9f, 0x97,
  94. !       0x9c, 0x95, 0x9e, 0x96, 0xbf, 0x9d, 0x94, 0x9a
  95.   };
  96.  
  97.   /*
  98.    * Most Unixes has KOI8, and DOS has ALT_CODE
  99.    * If your Unix is non-standard, set CHARSET to "alt_codes"
  100. ***************
  101. *** 126,131 ****
  102. --- 125,131 ----
  103.   #define       DEFAULT_RU_CSET "noconv"
  104.   #endif
  105.  
  106. + /* End of Russian section */
  107.  
  108.   int CONVERSION = NO_CONV;      /* None text file conversion at start time */
  109.  
  110.